package com.ruoyi.massage.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息管理对象 message
 * 
 * @author ruoyi
 * @date 2025-05-21
 */
//nested exception is org.apache.ibatis.reflection.ReflectionException:
//        There is no getter for property named 'nick_name' in 'class com.ruoyi.massage.domain.Message'
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 学生id */
    @Excel(name = "学生id")
    private Long studentId;

    /** 课程id */
    @Excel(name = "课程id")
    private Long classId;

    /** 0表示失败 1表示成功 */
    @Excel(name = "0表示失败 1表示成功")
    private Long status;

    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String studentName;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String className;

    /** 消息创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "消息创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

//    @TableField(exist = false)
//    private Users users;
//    @TableField(exist = false)
//    private Classes Classes;

//    public Classes getClasses() {
//        return Classes;
//    }
//
//    public void setClasses(Classes classes) {
//        Classes = classes;
//    }

//    public Users getUsers() {
//        return users;
//    }
//
//    public void setUsers(Users users) {
//        this.users = users;
//    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }

    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setStudentName(String studentName) 
    {
        this.studentName = studentName;
    }

    public String getStudentName() 
    {
        return studentName;
    }

    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentId", getStudentId())
            .append("classId", getClassId())
            .append("status", getStatus())
            .append("studentName", getStudentName())
            .append("className", getClassName())
            .append("time", getTime())
            .toString();
    }
}
